package com.youlai.system.converter;

import com.youlai.system.model.entity.Department;
import com.youlai.system.model.form.DepartmentForm;
import com.youlai.system.model.form.DeptForm;
import com.youlai.system.model.vo.DepartmentVO;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface DepartmentConverter {

//    DepartmentVO entityVO(Department department);

    List<DepartmentVO> entityVO(List<Department> departments);

    Department formEntity(DepartmentForm formData);

    DepartmentForm entityForm(Department entity);
}

